'''
Created on Jun 12, 2009

@author: tdelev
'''
from django.shortcuts import *
from django.http import *
from model.models import User

def index(request):       
    users = User.get_all() 
    return render_to_response('users/index.html', { 'users' : users })

def login(request):
    if request.method == 'POST':        
        return HttpResponse(request.POST)
   
    return render_to_response("users/login.html")
    
def authenticate(request):        
    return HttpResponse(request.POST['openid_identifier'])
   